import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import './components'
import './assets/style/reset.css'
import './assets/style/iconfont/iconfont.css'
Vue.config.productionTip = false
Vue.prototype.$axios = axios
axios.interceptors.request.use(config => {
  config.url = '/api/' + config.url
  return config
})
axios.interceptors.response.use(({ data }) => {
  return data;
})
Vue.use(MintUI)
new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
